package tom.change.util;

import javax.swing.JOptionPane;

public class Dialog {

	private Dialog() {
	}

	public static void OK2Canel(String content,Ok2Canel oc) {
		Object[] options = { "继续！", "算了吧！" };

		int res = JOptionPane.showOptionDialog(null, content, "消息", JOptionPane.YES_NO_OPTION,
				JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
		if (res == 0) {
			oc.Ok();
		} else if (res == 1) {
			oc.Canel();
		}
	}
}
